Skip to content

fix(generate): bind a Git workspace's clients by path - #41

Draft
eunomie wants to merge 4 commits into
mainfrom
fix-git-workspace-clients
Draft

eunomie wants to merge 4 commits into
mainfrom
fix-git-workspace-clients

Conversation

@eunomie

@eunomie eunomie commented Oct 23, 2026

Copy link
Copy Markdown
Member

dagger generate -W <git ref> resolves the workspace's own ./dep clients as Git sources. The Java SDK chose the binding from that kind alone, so generated client classes, checksums and runtime manifests embedded the Git URL and commit pin and differed from a local checkout.

A Git client is now bound by path when it belongs to the workspace: pin is the workspace commit, address and ref name the same repository (scheme ignored), selectors agree. Same rule as python-sdk #64/#65 and go-sdk #73/#78/#79, including the engine beta.20 <clone>#<version>:<subpath> form. Runtime manifests: sdk-helpers bumped to v1.0.5.

Tests: git-workspace-generate-check fails on the old code (3 files) and passes on beta.20 (and passed on beta.18 before the review round); workspace-ref-match-check has 17 rows.

Not run here: the beta.18 floor after the last review round (template sync, flag and docs only).

Known edge: sdk-helpers v1.0.5/v1.0.6 compare only the printed ref, so a client pinned to another commit with the same printed ref loses its pin on the runtime path.

Explain-changes: https://gistpreview.github.io/?dc66d177064fbff4ff2d484abf509535

Signed-off-by: Yves Brissaud <yves@dagger.io>
On the runtime sdk-helpers writes the clients into the manifest, and
v1.0.5 writes a client of the Git workspace by its path.

Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
Signed-off-by: Yves Brissaud <yves@dagger.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant